import React from 'react';
import {useNavigate} from 'react-router-dom';
function Home(){
    let navigate = useNavigate();
    return (
        <div>
            <p>Home</p>
            <button onClick={()=>navigate('/profile')}>跳转到/profile</button>
        </div>
    )
}
export default Home;